package com.pengxun.manager.service.system;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.pengxun.manager.model.system.Menu;
import com.szeastroc.common.jdbc.page.Page;


public interface  MenuService {
   public int insert(Menu menu);
   
   public int update(Menu menu);
   
   public int delete(Integer id);
   
   public Page findByPage(Page page,String menuName);
   
   public Menu findById(Integer menuId);
   
   public Menu findByMenuCode(String menuCode);
   
   public List<Menu> findByParentMenuCode(String parentMenuCode);
   
   List<Menu> findByMenuCodes(List<String> menuCodes);
   public List<Menu> findAll();
   
   public int deleteByParentMenuCode(String parentMenuCode);
   
   public List<Menu> findAllMenu();
   
   public JSONObject findMenuAuthority();
   
   public Menu selectLastMenuCode();
   
   public List<Menu> findMenuTree();
   
   public int updateStatus(Integer menuId,Integer status);
   
   public List<Menu> findByMenuName(String menuName);
}
